package com.mf.service;

import com.mf.bo.CodeDateScopedBo;
import com.mf.bo.DateScopedBo;
import com.mf.entity.Code;
import com.mf.entity.CodeHistory;
import com.mf.entity.WeekCodeHistory;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 股票历史周数据 服务类
 * </p>
 *
 * @author mf
 * @since 2024-06-21
 */
public interface IWeekCodeHistoryService extends IService<WeekCodeHistory> {

    void saveBatchAll(DateScopedBo dateScoped, List<Code> codeList);
    /**
     * 根据时间范围获取周数据
     */
    List<CodeHistory> getCodeListHistoryByDate(CodeDateScopedBo codeDateScopedBo);

    Map<String, List<CodeHistory>> findAllDate(DateScopedBo dateScopedBo);
}
